package me.dwliu.lab.demo.webflux.service;

import me.dwliu.lab.demo.webflux.model.Employee;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

/**
 * 业务层
 *
 * @author liudw
 * @date 2020-03-29 09:32
 **/
public interface EmployeeService {

    Mono<Employee> create(Employee entity);

    Mono<Employee> findById(Long id);

    Flux<Employee> findByName(String name);

    Flux<Employee> findAll();

    Mono<Employee> update(Employee entity);

    Mono<Void> delete(Long id);
}
